package com.ccrfid.rmc6.repository.mattress;

import com.ccrfid.rmc6.entity.mattress.MattressStateEntity;
import com.ccrfid.rmc6.repository.search.SearchableRepository;
import org.springframework.data.repository.Repository;

import java.sql.Timestamp;
import java.util.List;

public interface MattressStateRepository extends Repository<MattressStateEntity, Long>,
        SearchableRepository<MattressStateEntity> {

    MattressStateEntity save(MattressStateEntity entity);

    List<MattressStateEntity> getAllByMattressSnAndRecordTimeBetween(String mattressSn, Timestamp startTime, Timestamp stopTime);
}
